package demo3;

/**
 * @Author 12629
 * @Description：
 */
public class Derived extends Base{
    public int a = 1111;
    public int c = 3;

    public void funcDerived() {
        System.out.println("Derived::funcDerived()");
    }

    public void funcBase() {
        System.out.println("Derived::func()");
    }

    public void funcBase(int a) {
        System.out.println("Derived::func() " +a);
    }

    public void method() {
        this.funcDerived();
        super.funcBase();
        this.funcBase(10);
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }


    public void test() {
        System.out.println("1: "+super.a);
        System.out.println("2: "+this.a);
        System.out.println(this.b);
        System.out.println(b);
        System.out.println(c);
    }

    public static void main1(String[] args) {
        Derived derived = new Derived();
        derived.test();
    }
}
